home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / mslang / stepon / example1.tx_ / example1.tx
Encoding:
Text File  |  1994-04-30  |  9.6 KB  |  269 lines

  1. º_dde.prjº[settings]
  2. comment=Demonstrates _DDE routine.
  3. ownmsgfile=0
  4. ºaddshare.prjº[settings]
  5. ownmsgfile=0
  6. comment=Checks, if your system uses locking and add SHARE.EXE to file AUTOEXEC.BAT if neccessary.
  7. ºaskbox.prjº[settings]
  8. comment=Shows an input dialog and shows the entered text in a simple message box.
  9. ownmsgfile=0
  10. ºaskend.prjº[settings]
  11. comment=Asks, if program should be aborted and shows the corresponding message.
  12. ownmsgfile=0
  13. ºbeep.prjº[settings]
  14. comment=Asks how many beeps you want to hear and puts the desired number of beeps out.
  15. ownmsgfile=0
  16. ºchdir.prjº[settings]
  17. comment=Activates the choosen directory and undos the command if neccessary.{_NL}This script works only in runtime version.
  18. ownmsgfile=0
  19. ºchftype.prjº[settings]
  20. comment=Changes the extension of a file.
  21. ownmsgfile=0
  22. ºclipread.prjº[settings]
  23. ownmsgfile=0
  24. comment=Writes file AUTOEXEC.BAT in clipboard and shows clipboard contents in a simple message box.
  25. ºclipwrit.prjº[settings]
  26. ownmsgfile=0
  27. comment=Writes file AUTOEXEC.BAT in clipboard and shows clipboard contents in a simple message box.
  28. ºcompute.prjº[settings]
  29. ownmsgfile=0
  30. comment=Adds 2 and 2, also adds 10 and 2 and shows the results in a simple message box.
  31. ºconcat.prjº[settings]
  32. ownmsgfile=0
  33. comment=Concatenates the strings 'Hello ' and 'World!' and shows the result in a simple message box.
  34. ºcopy.prjº[settings]
  35. comment=Copies the choosen file in the choosen target path.
  36. ownmsgfile=0
  37. ºcreatetn.prjº[settings]
  38. comment=Creates a name for a temporary file.
  39. ownmsgfile=0
  40. ºddeexec.prjº[settings]
  41. comment=Creates the specified program group in Program Manager.
  42. ownmsgfile=0
  43. ºddepoke.prjº[settings]
  44. comment=Sets an item via DDE in another application.
  45. ownmsgfile=0
  46. ºddereque.prjº[settings]
  47. comment=Makes a DDE request to Program Manager to show the program groups.
  48. ownmsgfile=0
  49. ºdel.prjº[settings]
  50. comment=Creates a test file and deletes it.
  51. ownmsgfile=0
  52. ºdirexist.prjº[settings]
  53. comment=Checks, if TEMP directory exists, and shows its name if available.
  54. ownmsgfile=0
  55. ºend.prjº[settings]
  56. ownmsgfile=0
  57. comment=Checks, if file COMMAND.COM exists on start drive and shows a message.
  58. ºfiledate.prjº[settings]
  59. comment=Gets the date of file COMMAND.COM on your boot drive and shows it in a simple message box.
  60. ownmsgfile=0
  61. ºfileexis.prjº[settings]
  62. ownmsgfile=0
  63. comment=Checks, if file COMMAND.COM exists on your boot drive and shows the corresponding message box.
  64. ºfilelen.prjº[settings]
  65. comment=Gets the length of file COMMAND.COM on your boot drive and shows the corresponding message box.
  66. ownmsgfile=0
  67. ºfilesear.prjº[settings]
  68. comment=Searchs files COMMAND.COM and IO.SYS in DOS path and shows the result.
  69. ownmsgfile=0
  70. ºfindfrst.prjº[settings]
  71. comment=Demonstrates FindFirst - FindNext.
  72. ownmsgfile=0
  73. ºfornext.prjº[settings]
  74. comment=Demonstrates For..Next loop.
  75. ownmsgfile=0
  76. ºgetdir.prjº[settings]
  77. comment=Shows the active path in a message box.
  78. ownmsgfile=0
  79. ºgetdiskf.prjº[settings]
  80. comment=Shows the number of free bytes on your boot drive in a simple message box.
  81. ownmsgfile=0
  82. ºgetdiskl.prjº[settings]
  83. comment=Shows the volume name of your boot drive in a simple message box.
  84. ownmsgfile=0
  85. ºgetdisks.prjº[settings]
  86. comment=Shows the capacity of your boot drive in a simple message box.
  87. ownmsgfile=0
  88. ºgetdiskt.prjº[settings]
  89. comment=Checks the drive type of your boot drive in shows the result in a simple message box.
  90. ownmsgfile=0
  91. ºgetenvir.prjº[settings]
  92. comment=Gets the contents of a DOS environment variable and shows it in a simple message box.
  93. ownmsgfile=0
  94. ºgetnewer.prjº[settings]
  95. comment=Checks if CONFIG.SYS is younger as AUTOEXEC.BAT and shows the result.
  96. ownmsgfile=0
  97. ºgettabc.prjº[settings]
  98. comment=Gets the number of tables in the project and shows the result.
  99. ownmsgfile=0
  100. ºgettabec.prjº[settings]
  101. comment=Gets the number of elements of the table(s) in the project and displays the result.
  102. ownmsgfile=0
  103. ºgettablc.prjº[settings]
  104. comment=Gets the number of lines of the table(s) in the project and displas the result.
  105. ownmsgfile=0
  106. ºgetuseri.prjº[settings]
  107. comment=Shows the main window with command button 'End'.
  108. ownmsgfile=0
  109. ºgosub.prjº[settings]
  110. comment=Passes a string to a sub and shows a simple message box with the passed string as local variable.
  111. ownmsgfile=0
  112. ºgoto.prjº[settings]
  113. comment=Simulates a For..Next loop with Goto. Asks how often the loop should be executed.
  114. ownmsgfile=0
  115. ºif.prjº[settings]
  116. comment=Asks if you want to see a demonstration of command If and shows the corresponding message box.
  117. ownmsgfile=0
  118. ºiniread.prjº[settings]
  119. comment=Gets the available devices from WIN.INI and shows the result in a simple message box.
  120. ownmsgfile=0
  121. ºiniwrite.prjº[settings]
  122. comment=Adds StepOne script file as extensions in WIN.INI.
  123. ownmsgfile=0
  124. ºisperm2w.prjº[settings]
  125. ownmsgfile=0
  126. comment=Checks if write permission is available for drive and displays the result.
  127. ºistaskac.prjº[settings]
  128. comment=Checks if Program Manager is started, and shows the corresponding simple message box.
  129. ownmsgfile=0
  130. ºjump.prjº[settings]
  131. comment=Demonstrates the simplest jump.
  132. ownmsgfile=0
  133. ºlabel.prjº[settings]
  134. comment=Simulates a Do..While loop. Asks how often it should be executed and shows the result.
  135. ownmsgfile=0
  136. ºlen.prjº[settings]
  137. comment=Asks for a text and shows the text and its length in a simple message box.
  138. ownmsgfile=0
  139. ºlet.prjº[settings]
  140. ownmsgfile=0
  141. comment=Concatenates the string 'Hello ' and 'World!' and shows the result.
  142. ºmci2.prjº[settings]
  143. comment=Plays every track on an audio CD for 20 seconds.
  144. ownmsgfile=0
  145. ºmcisend.prjº[settings]
  146. comment=Plays file XYLOPHON.WAV of your Windows directory.
  147. ownmsgfile=0
  148. ºmkdir.prjº[settings]
  149. comment=Creates directory DUMMY on your boot drive and deletes it if neccessary.
  150. ownmsgfile=0
  151. ºmsgbox.prjº[settings]
  152. comment=Shows file AUTOEXEC.BAT if desired.
  153. ownmsgfile=0
  154. ºnetaddc.prjº[settings]
  155. comment=see STEPONE.PRJ
  156. ownmsgfile=0
  157. ºnetcance.prjº[settings]
  158. comment=see STEPONE.PRJ
  159. ownmsgfile=0
  160. ºnetgetc.prjº[settings]
  161. comment=see STEPONE.PRJ
  162. ownmsgfile=0
  163. ºoutbox.prjº[settings]
  164. comment=Shows file AUTOEXEC.BAT in a simple message box.
  165. ownmsgfile=0
  166. ºpatchf.prjº[settings]
  167. ownmsgfile=0
  168. comment=Patchs file PATCHME.EXE, which has a special string for this case.
  169. ºpathbox.prjº[settings]
  170. comment=Displays file selection dialog where you're able to select the INI file which you want to be displayd.
  171. ownmsgfile=0
  172. ºplaywave.prjº[settings]
  173. comment=Tries to play file XYLOPHON.WAV of your Windows directory and asks for another if it isn't available.
  174. ownmsgfile=0
  175. ºreboot.prjº[settings]
  176. comment=Restarts Windows if desired.
  177. ownmsgfile=0
  178. ºregbaser.prjº[settings]
  179. comment=Tries to read the document name of StepOne FastCode files of the registration database and displays it. See also REGBASEW
  180. ownmsgfile=0
  181. ºregbasew.prjº[settings]
  182. comment=Adds Shih Tao game files to the registration database.
  183. ownmsgfile=0
  184. ºrem.prjº[settings]
  185. comment=Demonstrates the different possibilities of comments in StepOne.
  186. ownmsgfile=0
  187. ºresstrgr.prjº[settings]
  188. comment=Displays resource text #259 of Microsoft common dialogs.
  189. ownmsgfile=0
  190. ºrmdir.prjº[settings]
  191. comment=Creates the test directory STEPONE.TST on your boot drive and deletes it if neccessary.
  192. ownmsgfile=0
  193. ºsendkeys.prjº[settings]
  194. comment=Sends keys 'Alt+HB Enter' to active application so the Copyright dialog can be displayd.
  195. ownmsgfile=0
  196. ºsetattri.prjº[settings]
  197. comment=Asks for a file which archive attribute should be changed, changes it if desired and changes it back if neccessary.
  198. ownmsgfile=0
  199. ºsetwallp.prjº[settings]
  200. comment=Asks for a bitmap file which should be set as Windows Wallpaper and changes it back if neccessary.
  201. ownmsgfile=0
  202. ºsetwinp.prjº[settings]
  203. comment=Displays the main window and the Windows help system in ratio 2/3:1/3.
  204. ownmsgfile=0
  205. ºsplit.prjº[settings]
  206. comment=Gets the third part of the blank separated string 'Hello World, how are you?' and displays the result.
  207. ownmsgfile=0
  208. ºsplitpat.prjº[settings]
  209. comment=Gets the base name o file name 'd:\krs\stepone\handbuch\hb.sam' and displays it.
  210. ownmsgfile=0
  211. ºsub.prjº[settings]
  212. ownmsgfile=0
  213. comment=Passes the sub a string and displays the local variable.
  214. ºsysconst.prjº[settings]
  215. comment=Displays Windows version.
  216. ownmsgfile=0
  217. ºtable.prjº[settings]
  218. comment=Demonstrates access on table elements and sets a table element at runtime. Displays: Hello World!
  219. ownmsgfile=0
  220. ºtaskstop.prjº[settings]
  221. comment=Ends the with TASKSTRT.PRJ started Write.
  222. ownmsgfile=0
  223. ºtaskstrt.prjº[settings]
  224. comment=Starts word processor MS Write if desired.
  225. ownmsgfile=0
  226. ºtextread.prjº[settings]
  227. comment=Reads file AUTOEXEC.BAT in a variable and displays it.
  228. ownmsgfile=0
  229. ºtextwrit.prjº[settings]
  230. comment=Reads file AUTOEXEC.BAT in a variable, saves it in file TEXTWRIT.TMP and displays it.
  231. ownmsgfile=0
  232. ºtouch.prjº[settings]
  233. ownmsgfile=0
  234. comment=Changes the date of a file.
  235. ºvariable.prjº[settings]
  236. comment=Demonstrates use of variables.
  237. ownmsgfile=0
  238. ºcompare.prjº[settings]
  239. comment=Compares TEMP with Windows drive and displays the result.
  240. ownmsgfile=0
  241. ºverinfor.prjº[settings]
  242. comment=Gets version information of MS Write and displays the result.
  243. ownmsgfile=0
  244. ºwait.prjº[settings]
  245. comment=Waits the desired number of seconds.
  246. ownmsgfile=0
  247. ºwindow.prjº[settings]
  248. comment=Displays the main window with command button 'End'.
  249. ownmsgfile=0
  250. ºwinhelp.prjº[settings]
  251. comment=Starts Windows help system with file WINHELP.HLP 'Help on Help'.
  252. ownmsgfile=0
  253. º_dde.scpºWait "-1"
  254.  
  255. Sub _DDE
  256.     If "{_DDE1}" = "Client1"
  257.         GoSub "{_DDE2}"
  258.         If "{_Err}" = "-1"
  259.             OutBox "Unknown DDE command"
  260.         EndIf
  261.     Else
  262.         ExitSub
  263.     EndIf
  264. EndSub
  265.  
  266. Sub Display
  267.     OutBox "DDE command '{_DDE2}' is used to display the following text:{_NL}{_DDE3}"
  268. EndSub
  269.